import os
from dotenv import load_dotenv

load_dotenv()

# API 配置
API_HOST = os.getenv('API_HOST', '0.0.0.0')
API_PORT = int(os.getenv('API_PORT', 8000))

# Deepseek 配置
DEEPSEEK_API_KEY = os.getenv('DEEPSEEK_API_KEY', '')
DEEPSEEK_BASE_URL = os.getenv('DEEPSEEK_BASE_URL', 'https://api.deepseek.com')

# 爬虫配置
BASE_URL = "http://www.pbc.gov.cn"
LPR_LIST_URL = f"{BASE_URL}/zhengcehuobisi/125207/125213/125440/index.html"
MAX_RETRIES = 3
REQUEST_TIMEOUT = 30 